package cn.sanch.org.service;

import cn.sanch.basic.service.IBaseService;
import cn.sanch.basic.util.PageList;
import cn.sanch.org.domain.Shop;
import cn.sanch.org.domain.ShopAuditLog;
import cn.sanch.org.dto.ShopDto;
import cn.sanch.org.query.ShopQuery;

import javax.mail.MessagingException;
import java.util.List;

/**
 * @author sanch37
 * 2022/5/23
 */
public interface IShopService extends IBaseService<Shop> {

    /**
     * 商家入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 店铺审核通过
     * @param log
     */
    void pass(ShopAuditLog log) throws MessagingException;

    /**
     * 店铺审核驳回
     * @param log
     */
    void reject(ShopAuditLog log) throws MessagingException;

    /**
     * 获取店铺每一种状态的数量
     * @return
     */
    List<ShopDto> getShopStates();
}
